package com.erp4j.dynamicfield.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.JsonNode;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("customer")
public class Customer {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long moduleId;
    
    // 固定字段
    private String name;        // 客户姓名
    private String phone;       // 联系电话
    private String address;     // 联系地址
    private String status;      // 客户状态
    
    // 扩展字段
    private JsonNode extFields;
    
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
